<include file="Public:header" />
<!--添加文章-->
<form id="info_form" action="{:U('Picture/add')}" method="post" enctype="multipart/form-data">
<div class="pad_lr_10">
	<div class="col_tab">
		<ul class="J_tabs tab_but cu_li">
			<li class="current">上传图片</li>
		</ul>
		<div class="J_panes">
			<div class="content_list pad_10">
				<table width="100%" cellspacing="0" class="table_form">
                        <tr>
                            <th>所属楼盘 :</th>
                            <td>
                                <span id="housename">{$housename}</span>
                                <button class="J_showdialog" data-pic="0" data-uri="{:U('House/publicSelectHouse', array('menuid'=>$menuid))}" data-acttype="ajax" data-title="选择楼盘" data-id="select" data-width="670" data-height="500" data-boxtype="radio" data-boxname="houseid" data-val="house_id" data-displaybox="housename">选择楼盘</button>
                                <input type="hidden" name="house_id" id="house_id" value="{$houseid}">
                                <input type="hidden" name="model" id="model" value="{$model}" />
                            </td>
                        </tr>
					<tr>
						<th width="120">所属栏目 :</th>
						<td>
                            <select class="J_cate_select mr10" data-pid="0" data-menuid="5" data-uri="{:U('Picture/ajaxGetchilds')}" onchange="setTypeId(this);" data-selected=""></select>
                            <input type="hidden" name="cate_id" id="J_cate_id" value="" />
                            <input type="hidden" name="type_id" id="type_id" value="27">
                        </td>
					</tr>
		            <tr>
						<th width="120">图片上传 :</th>
                        <td><script id="uploadpic" name="uploadpic" type="text/plain"></script>
                            <input type="button" class="btn btn_submit" style="margin:0 0 10px 10px;" onclick="upImage();" value="选择图片">
                            <div id="imageList">
                                <ul class="list clearfix">
                                </ul>
                            </div>
                        </td>
					</tr>
  				<tr>
						<th>{:L('publish')} :</th>
		 				<td>
		                	<label><input type="radio" name="status" class="radio_style" value="1" checked="checked"> {:L('yes')} </label>&nbsp;&nbsp;
							<label><input type="radio" name="status" class="radio_style" value="0" > {:L('no')}</label>
						</td>
					</tr>
				</table>
			</div>
        </div>
		<div class="mt10"><input type="submit" value="{:L('submit')}" id="dosubmit" name="dosubmit" class="btn btn_submit" style="margin:0 0 10px 100px;"><br /><br /><br /></div>
	</div>
</div>
</form>
<include file="Public:footer" />
<script>
    $('.J_cate_select').cate_select({top_option:'请选择',field:'J_cate_id'});
</script>
<js file="__STATIC__/ueditor/ueditor.config.js" charset="utf-8" />
<js file="__STATIC__/ueditor/ueditor.all.min.js" charset="utf-8" />
<js file="__STATIC__/ueditor/lang/zh-cn/zh-cn.js" charset="utf-8" />
<script type="text/javascript">
    window.UEDITOR_HOME_URL='__STATIC__/ueditor/';
    window.onload=function(){
        upmoreimg();
    }
    function setTypeId(o){
        var id = o.value;
        $("#type_id").val(id);
    }
</script>
<js file="__JS__/uploadImg.js" charset="utf-8" />
</body>
</html>